package com.zlz.open.ugs.module;

import com.zlz.open.ugs.core.chain.Chain;
import com.zlz.open.ugs.core.exchange.Exchange;
import com.zlz.open.ugs.core.module.Module;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Mono;

/**
 * 鉴权组件
 * @Author: zhulinzhong
 * @Date: 2024/5/30
 */
@Slf4j
@Component
public class TestModule implements Module {

    public Mono<Void> work(Exchange exchange, Chain chain){
        log.info("TestModule work");
        return chain.work(exchange);
    }

}
